

<?php
	
	require_once($_SERVER['DOCUMENT_ROOT'] . '/Prototipo/controle/ImagemController.php');
	
	$control = new ImagemController();
	
	echo "<form action='#' Method='post' enctype='multipart/form-data'>
			<input type='file' name='foto'></br>
			<input type='submit' value='upload' name='botao'>
			</form>";

	if (isset($_POST['botao'])) {
	
		$img = $_FILES['foto'];
				
		$control->trataImagemWideImage($img);
		
	}